package com.yvdedu.hospital.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yvdedu.hospital.entity.Hospital;
import com.yvdedu.hospital.entity.User;
import com.yvdedu.hospital.mapper.DoctorMapper;
import com.yvdedu.hospital.service.DoctorService;

@Service
public class DoctorSer implements DoctorService {
	
	@Resource
	private DoctorMapper doctorMapper;

	@Override
	public List<User> doctorquery(int role_id) {
		List<User> list = doctorMapper.doctorquery(role_id);
		return list;
	}

	@Override
	public List<User> doctorNamequery(User user) {
		List<User> list = doctorMapper.doctorNamequery(user);
		return list;
	}
	


	@Override
	public void doctoradd(User user) {
		doctorMapper.doctoradd(user);
	}

	@Override
	public void doctoredit(User doctor) {
		doctorMapper.doctoredit(doctor);
	}
	
	@Override
	public void doctorUpdate(User user) {
		doctorMapper.doctorUpdate(user);
	}

	@Override
	public void doctordelete(int id) {
		doctorMapper.doctordelete(id);
	}
	

}
